<template>
  <view class="home">
    <view class="out">
      <view class="row" v-for="it in list" :key="it._id">
        <view>姓名：{{it.name}}</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return { list: [] }
    },
    onLoad() {
      this.getData()
    },
    methods: {
      getData() {
        uniCloud.callFunction({ name: 'cloudDemoGet', data: {} }).then(res => {
          console.log(res)
          this.list = res.result.data
        })
      }
    }
  }
</script>

<style lang="scss">
  .row {
    border-bottom: 1px solid #ccc;
    padding: 30rpx;
  }
</style>